<?php 
	session_start();
	if ($_SESSION['nums'] && $_SESSION['resl']){
		$one = $_SESSION['nums']['one'];
		$two = $_SESSION['nums']['two'];
		$oper = $_SESSION['nums']['oper'];
		$resl = $_SESSION['resl'];
	}else{
		header('Location: index.php');
	}
	
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" href="../css/style.css">
	<link rel="shortcut icon" href="https://bsquare.co.in/assets/php_icon.png">
	<title>Результат</title>
</head>
<body>
	<div class="content-wraper">
		<div class="content">
			<h1 class="title">Калькулятор</h1>
			<span>Результат: <?php echo $one." ".$oper." ".$two." = ".$resl; ?></span>
			<div class="links">
 				<a href="/" class="link">К выбору заданий</a>
 			</div>
		</div>
	</div>
</body>
</html>